package xcmg.device.dao.mapper.agent;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import xcmg.device.dao.entity.agent.ServiceBorrowInDO;
import xcmg.device.service.vo.agent.ServiceBorrowInVO;
import yb.ecp.fast.infra.infra.PageCommonVO;
import yb.ecp.fast.infra.infra.SearchCommonVO;

import java.util.List;


/**
 * 借用退回单 Mapper
 * @author huhuawei
 */
@Mapper
public interface ServiceBorrowInMapper{

    PageCommonVO list(SearchCommonVO<ServiceBorrowInVO> condition);

    List<ServiceBorrowInDO> queryList(ServiceBorrowInVO condition);

    int insert(ServiceBorrowInDO model);

    int merge(ServiceBorrowInDO model);

    int updateByPrimaryKeySelective(ServiceBorrowInDO bean);

    int deleteByPrimaryKeySelective(String id);

    ServiceBorrowInDO selectByPrimaryKey(@Param("id") String id);

    ServiceBorrowInDO selectByBorrowInNo(@Param("borrowInNo") String borrowInNo);

}
